﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace PhoneBilling.Models
{
    public class SliceDetailEditModel
    {
        [Required(ErrorMessage = "请输入分段起点时间.")]
        [Display(Name = "分段起点时间：")]
        public int 分段起点时间 { get; set; }

        [Required(ErrorMessage = "请输入分段截止时间.")]
        [Display(Name = "分段截止时间：")]
        public int 分段截止时间 { get; set; }

        [Required(ErrorMessage = "请输入费率.")]
        [Display(Name = "费率：")]
        public float 费率 { get; set; }

        [Required(ErrorMessage = "请输入费用类别.")]
        [Display(Name = "费用类别：")]
        public string 费用类别 { get; set; }

        [Required(ErrorMessage = "请输入计次单位.")]
        [Display(Name = "计次单位：")]
        public int 计次单位 { get; set; }

        [Required(ErrorMessage = "请选择作为有效计次.")]
        [Display(Name = "是否作为有效计次：")]
        public bool 是否计算计次 { get; set; }

        [Required(ErrorMessage = "请输入名称.")]
        [Display(Name = "名称：")]
        public string 名称 { get; set; }

        public bool IsNew { get; set; }

        public string SliceID { get; set; }

        public List<UIFeeType> FeeTypeList { get; set; }
    }
}